## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #if ($level > 0)
    #if (!$menu.url) $menu.setUrl($menu.components.get(0).url) #end
    #if ($menu.components.size() > 0) 
      #set ($numItems = $menu.components.size())
    		<div class="accordionHeader">
				<h2><span>Folder</span>${title}</h2>
			</div>
    #else 
    	 #if ($velocityCount == 1) 
		<div class="accordionContent">
		<ul class="tree">
		 #end
   		 <li><a href="$!{menu.url}" target="navTab" rel="$!{menu.url}">${title}</a></li>
   		 #if ($velocityCount == $numItems) 
   		</ul>
   		</div>
   		 #end
    #end
  #end
#end
<div class="accordion" fillSpace="sideBar">
#displayMenu($menu 0)
</div>
